#ifndef MEM_HASH_H
#define MEM_HASH_H

#include "uthash.h"

struct pointer_statist {
	void *ptr;
	unsigned long size;

	UT_hash_handle hh;
};

extern struct pointer_statist *hash_find_pointer_statist(struct pointer_statist *head, void *ptr);
extern int hash_add_pointer_statist(struct pointer_statist **head, void *ptr, size_t size);
extern int hash_delete_pointer_statist(struct pointer_statist **head, struct pointer_statist *ps);

#endif
